package com.wx.mall.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljl
 * @since 2020-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_area")
@ApiModel(value="Area对象", description="区域实体类")
public class Area implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "区域编号")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "区域名称")
    private String name;

    @ApiModelProperty(value = "区域父级编号 第1层级 父级编号为 0 ")
    private Integer parentId;

    @ApiModelProperty(value = "区域层级 1 省/自治区/直辖市 2 地级市 3 市辖区/县/县级市 4 乡/镇/街道")
    private Integer tier;


}
